class Librerias < ActiveRecord::Migration
  def self.up
    create_table 'librerias', :force => false do |t|
      t.column  :titulo,                 :string, :null => false, :limit => 128
      t.column  :titulo_sanitizado,      :string, :null => false, :limit => 128
      t.column  :direccion,              :string, :null => false, :limit => 255
      t.column  :direccion_google,       :string, :null => false, :limit => 255
      t.column  :ciudad,                 :string, :null => false, :limit => 128
      t.column  :cp,                     :string, :null => false, :limit => 8
      t.column  :texto,                  :string, :null => false, :limit => 512
      t.column  :latitud,                :string, :null => false, :limit => 20
      t.column  :longitud,               :string, :null => false, :limit => 20
    end
  end

  def self.down
    drop_table :librerias
  end
end